import 'package:finance_app/src/entities/setting_data_entity.dart';

import '../fixed_asset_entity.dart';

class SplitExpenseEntity {
  SettingDataCategory selectCategory;
  SettingDataTax selectTax;
  String amount;
  bool isCheckInclusive;

  FixedAssetEntity fixedAssetEntity;

  @override
  bool operator ==(Object other) =>
      identical(this, other) ||
      other is SplitExpenseEntity &&
          runtimeType == other.runtimeType &&
          selectCategory == other.selectCategory &&
          selectTax == other.selectTax &&
          amount == other.amount &&
          isCheckInclusive == other.isCheckInclusive;

  @override
  int get hashCode =>
      selectCategory.hashCode ^
      selectTax.hashCode ^
      amount.hashCode ^
      isCheckInclusive.hashCode;
}
